package cn.coders.haoniu.caipiao;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;


@Component
@ConfigurationProperties
@PropertySource(value = { "classpath:stock.properties" })
public class ConfigBean {

    @Value("${bind.host}")
    String bind_host;
    @Value("${bind.port}")
    int bind_port;

    @Value("${reporturl}")
    String reposturl;


    public String getBind_host() {
        return bind_host;
    }


    public void setBind_host(String bind_host) {
        this.bind_host = bind_host;
    }


    public int getBind_port() {
        return bind_port;
    }


    public void setBind_port(int bind_port) {
        this.bind_port = bind_port;
    }


    public String getReposturl() {
        return reposturl;
    }


    public void setReposturl(String reposturl) {
        this.reposturl = reposturl;
    }

}
